package com.test;

import java.awt.Dimension;
import java.awt.Frame;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import com.formdev.flatlaf.FlatDarkLaf;
import com.formdev.flatlaf.FlatIntelliJLaf;
import com.formdev.flatlaf.themes.FlatMacLightLaf;

public class MainWindow {

	public static void main(String[] args) {
		try {
			 UIManager.setLookAndFeel(new FlatIntelliJLaf());
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		JFrame frame = new JFrame("HelloWorldSwing");
		frame.setLayout(null);
		frame.setLocation(1000, 500);// 设置窗口的位置
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setSize(600, 600);// 设置窗口的大小
		frame.setPreferredSize(new Dimension(400, 400));
		JLabel label = new JLabel("ddddd");
		JButton button = new JButton("点击sdfsdf");
		button.setBounds(20,20, 120, 40);
		frame.getContentPane().add(label);
		frame.getContentPane().add(button);
		frame.pack();
		frame.setVisible(true);

	}

}
